<template>
  <div class="content">
    <h2>{{ title }}</h2>
    <ul>
      <li v-for="item in detail" :key="item">{{ item }}</li>
    </ul>
  </div>
</template>
<script>
export default {
  name: 'Content',
  props: ['title', 'detail'],
};
</script>
<style>
.content {
  margin-left: 180px;
  /* border: 1px solid #66cccc; */
  width: 250px;
  height: 350px;
  background: #ccff99;
  text-align: center;
}
li {
  transition: 0.3s;
  font-size: 20px;
  margin-left: -40px;
  list-style: none;
  line-height: 50px;
}
li:hover {
  background: #99cccc;
  cursor: pointer;
}
h2 {
  display: block;
  line-height: 60px;
  margin-top: 40px;
  background-color: #66cccc;
}
</style>
